﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Inovout.YunYao.Common"
				           namespace="Inovout.YunYao.Models" >
  <class name="MonitoringNode"
         table="Common_MonitoringNode">
    <id name="Id" access="field.camelcase"
        column="MonitoringNodeId" type="Int32">
      <generator class="native" />
    </id>
    <property name="Name" />
    <property name="Code"  access="field.camelcase" />
    <many-to-one name="Solution" column="SolutionId" class="Solution" />
    <many-to-one name="Location" column="LocationId" class="RoomLocation" />
    <many-to-one name="Object" column="ObjectId" class="MonitoringObject" />
    <many-to-one name="Feature" column="FeatureId" class="Feature" />
    <component name="FeatureValueDescriptor">
      <property name="Type" />
      <property name="Accuracy" />
      <property name="QualityFormula" />
      <property name="IsCustomQualityFormula" />
      <property name="BadQualityFormula" />
    </component>
    <property name="Status" />
    <property name="CreatedTime"  access="field.camelcase" />
    <property name="CreatedUserName"  access="field.camelcase"/>
    <property name="ModifiedTime"  access="field.camelcase"/>
    <property name="ModifiedUserName"  access="field.camelcase"/>
    <property name="AccessedTime"  access="field.camelcase"/>
    <property name="AccessedUserName"  access="field.camelcase"/>
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>


